#ifndef __RFID_UHF_H__
#define	__RFID_UHF_H__

#include <stdint.h>

struct multi_tag_info
{
	uint16_t count;
	uint8_t uii_len;
	uint8_t tag_info[80];
};

typedef struct multi_tag_info multi_tag_info_t;

uint8_t UhfReaderConnect(char* cPort);
uint8_t UhfInventorySingleTag(uint8_t *uUii, uint8_t *uLenUii);
uint8_t UhfGetPower(uint8_t *uPower);
uint8_t UhfSetPower(uint8_t uPower);
uint8_t UhfInventoryMultiTag();
uint8_t UhfReadDataFromSingleTag(uint8_t *uUii,
	uint8_t *uLenUii, uint8_t *pdata, uint8_t bank, uint8_t addr, uint8_t plen);
uint8_t UhfBlockWriteDataToSingleTag(uint8_t uBank, uint8_t uPtr, uint8_t uCnt,
									 uint8_t *uWriteData,  uint8_t* uUii,
									 uint8_t *uLenUii);

#endif